package com.cel.sc.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cel.sc.service.hystrix.HiServiceHystric;

/**
 * feignClient调用的服务名
 * @author cel
 *
 */
@FeignClient(value="service-hi",fallback = HiServiceHystric.class)
public interface HiService {
	
	/**
	 * 调用 service-hi服务的hi的http接口
	 * @param name
	 * @return
	 */
	@RequestMapping(value = "/hi",method = RequestMethod.GET)
    String sayHiFromClientOne(@RequestParam(value = "name") String name);

}
